<%@ Page Language="VB" MasterPageFile="~/Template.master" AutoEventWireup="false" CodeFile="EditUser.aspx.vb" Inherits="Admin_EditUser" title="Edit User" %>
<%@ Register Src="../Controls/UserProfile.ascx" TagName="UserProfile" TagPrefix="mb" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="2">
        <tr>
            <td width="120" class="fieldname">UserName:</td>
            <td width="300"><asp:Literal runat="server" ID="lblUserName" /></td>
        </tr>
        <tr>
            <td class="fieldname">E-mail:</td>
            <td><asp:HyperLink runat="server" ID="lnkEmail" /></td>
        </tr>
        <tr>
            <td class="fieldname">Registered:</td>
            <td><asp:Literal runat="server" ID="lblRegistered" /></td>
        </tr>
        <tr>
            <td class="fieldname">Last Login:</td>
            <td><asp:Literal runat="server" ID="lblLastLogin" /></td>
        </tr>
        <tr>
            <td class="fieldname">Last Activity:</td>
            <td><asp:Literal runat="server" ID="lblLastActivity" /></td>
        </tr>
        <tr>
            <td class="fieldname">Online Now:</td>
            <td><asp:CheckBox runat="server" ID="chkOnlineNow" Enabled="false" /></td>
        </tr>
        <tr>
            <td class="fieldname">Approved:</td>
            <td><asp:CheckBox runat="server" ID="chkApproved" AutoPostBack="true" OnCheckedChanged="chkApproved_CheckedChanged" /></td>
        </tr>
        <tr>
            <td class="fieldname">Locked Out:</td>
            <td><asp:CheckBox runat="server" ID="chkLockedOut" AutoPostBack="true" OnCheckedChanged="chkLockedOut_CheckedChanged" /></td>
        </tr>
    </table>
    <p></p>
    <div class="sectiontitle">Edit user's roles</div>
    <p></p>
    <asp:CheckBoxList runat="server" ID="chklRoles" RepeatColumns="5" CellSpacing="4" />
    <table cellpadding="2" width="450">
        <tr><td align="right" style="width: 446px">
            <asp:Label ID="lblRolesFeedbackOK" runat="server" SkinID="FeedbackOK" Text="Roles Updated Successfully"
            Visible="False"></asp:Label>
            <asp:Button runat="Server" ID="btnUpdateRoles" Text="Update" OnClick="btnUpdateRoles_Click" />
        </td></tr>
        <tr><td align="right" style="width: 446px">
            <small>Create new role: </small>
            <asp:TextBox runat="server" ID="txtNewRole" />
            <asp:RequiredFieldValidator ID="valRequireNewRole" runat="server" ControlToValidate="txtNewRole"
                ErrorMessage="Role name is required." ValidationGroup="CreateRole">*
            </asp:RequiredFieldValidator>
            <asp:Button ID="btnCreateRole" runat="server" OnClick="btnCreateRole_Click"
                Text="Create" ValidationGroup="CreateRole" />
            </td></tr>
    </table>
    <p></p>
    <div class="sectiontitle">Edit user's profile</div>
    <p></p>
    <mb:UserProfile ID="UserProfile1" runat="server" />
    <table cellpadding="2" width="450">
        <tr><td align="right">
            <asp:Label runat="server" ID="lblProfileFeedbackOK" SkinID="FeedbackOK" Text="Profile Updated Successfully" Visible="false" />
            <asp:Button runat="server" ID="btnUpdateProfile" ValidationGroup="EditProfile" Text="Update" OnClick="btnUpdateProfile_Click" />
    </td></tr>
    </table>
</asp:Content>

